package com.dbz.controller;


import com.dbz.entity.CeShi;
import com.dbz.service.CeShiService;
import org.apache.commons.codec.digest.DigestUtils;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RequestMapping("/ceshi/")
@RestController
public class CeShiController {
    @Resource
private CeShiService ceShiService;
    /**
     * @return
     */
    @RequestMapping("selectAll")
public List<CeShi>getAll(){
  return  ceShiService.getAll();
}
    public static String encodeMD5Hex(String data){
        data="12345";
        return DigestUtils.md5Hex(data);
    }
}
